<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="/css/style.css">
  <link rel="stylesheet" href="/css/cut.css">
</head>

<body>
  <div class="upload-filed">
    <label id="uploadImgWrap" class="upload-img-wrap">
      +
      <input type="file" id="uploadImg" class="upload-img">
    </label>
    <button type="button" id="uploadBtn" class="upload-btn">上传</button>
  </div>
  <div class="upload">
    <div class="image-box">
      <!-- 使用 canvas 显示源图片 -->
      <canvas id="myCanvas" class="my-canvas" width="400" height="400"></canvas>

      <!-- 可移动的裁剪框 -->
      <div class="cut-box" id="cutBox"></div>
    </div>

    <!-- 裁剪后预览 -->
    <div class="image-show" id="imageShow">
      <canvas class="small-canvas" id="smallCanvas" width="200" height="200"></canvas>
    </div>
  </div>

  <script src="/js/jquery-1.11.1.js"></script>
  <script src="/js/cut.js"></script>
</body>

</html>